package com.webshooter.decoder;

public class MouseDownCommand extends Command {

    private String name;
    private int mouseButton = 0;
    private float angle = 0;

    public MouseDownCommand(String name, String mouseButtonString, String angleString) {
        this.name = name;
        this.mouseButton = Integer.parseInt(mouseButtonString);

        try {
            this.mouseButton = Integer.parseInt(mouseButtonString);
            this.angle = Float.parseFloat(angleString);
        } catch (Exception ex) {
        }
    }

    @Override
    public String getName() {
        return name;
    }

    public int getmouseButton() {
        return mouseButton;
    }

    public float getAngle() {
        return angle;
    }
}
